<ul>
	<?php 
	$pageloop = base_url().uri_string();
	if($_SESSION['role_id']==1) {?>
    	<li class="<?php echo (strpos($pageloop, 'staffprofile') !== false) ? 'current' : ''; ?>"><?php echo anchor("staffprofile","Staff Profile");?></li>
    	<li class="<?php echo (strpos($pageloop, 'training') !== false && strpos($pageloop, 'report') === false) ? 'current' : ''; ?>"><?php echo anchor("training","Training");?></li>
    	<li class="<?php echo (strpos($pageloop, 'report') !== false) ? 'current' : ''; ?>"><?php echo anchor("report","Report");?></li>
        <li class="<?php echo (strpos($pageloop, 'setting') !== false) ? 'current' : ''; ?>"><?php echo anchor("setting","Setting");?></li>
    <?php }elseif($_SESSION['role_id']==2) { ?>
        <li class="<?php echo (strpos($pageloop, 'profile') !== false) ? 'current' : ''; ?>"><?php echo anchor("employee/profile","Profile");?></li>
    	<li class="<?php echo (strpos($pageloop, 'training') !== false) ? 'current' : ''; ?>"><?php echo anchor("employee/training","Training");?></li>
    <?php }?>
</ul>